<style type="text/css">
    html{_overflow-y:scroll}
</style>

<form name="items" id="items" action="{$base_url}profile/password" method="post">
<div class="pad_10">

<div id="div_setting_1" class="contentList pad-10">
<table width="100%" class="table_form">

    <tr>
        <th width="100">原密码：</th>
        <td>
            <input name='info[original_password]' class="input-text" type='password' id='original_password' value='' size='28' maxlength='20' />
        </td>
    </tr>

    <tr>
        <th width="100">新密码：</th>
        <td>
            <input name='info[password]' class="input-text" type='password' id='new_password' value='' size='28' maxlength='20' />
        </td>
    </tr>

    <tr>
        <th width="100">确认新密码：</th>
        <td>
            <input name='info[rpassword]' class="input-text" type='password' id='r_new_password' value='' size='28' maxlength='20' />
        </td>
    </tr>

</table>
</div>

    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="提交" class="button">

</form>
</div>

<!--table_form_off-->
</div>

<script type="text/javascript">
<!--
jQuery(function()
{
    jQuery.formValidator.initConfig({
        formid:"items",
        autotip:true,
        onerror:function(msg,obj) {
            window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function() {
                this.close();
                $(obj).focus();
            })
        }
    });

    $("#original_password").formValidator({onshow:"请输入旧密码",onfocus:"旧密码应该为6-20位之间", oncorrect:"完成"})
    .inputValidator({min:6,max:20,onerror:"旧密码应该为6-20位之间"});

    $("#new_password").formValidator({onshow:"请输入新密码",onfocus:"新密码应该为6-20位之间",oncorrect:"完成"})
    .inputValidator({min:6,max:20,onerror:"新密码应该为6-20位之间"});

    $("#r_new_password").formValidator({onshow:"请输入确认新密码",onfocus:"输入的两次新密码不同。",oncorrect:"完成"})
    .inputValidator({min:6,max:20,onerror:"输入的两次新密码不同。"})
    .compareValidator({desid:"new_password",operateor:"=",onerror:"输入的两次新密码不同。"});

//end jQuery
});

window.top.$('#display_center_id').css('display','none');

function SwapTab(name,cls_show,cls_hide,cnt,cur)
{
    for(i=1;i<=cnt;i++) {
        if(i==cur) {
             jQuery('#div_'+name+'_'+i).show();
             jQuery('#tab_'+name+'_'+i).attr('class',cls_show);
        } else {
             jQuery('#div_'+name+'_'+i).hide();
             jQuery('#tab_'+name+'_'+i).attr('class',cls_hide);
        }
    }
}
//-->
</script>

<script type="text/javascript" src="{$asset_url}js/index/formvalidator.js"></script>
<script type="text/javascript" src="{$asset_url}js/index/formvalidatorregex.js"></script>